<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Register TagPrefix="uc1" TagName="UCSearch" Src="UCSearch.ascx" %>
<%@ Register TagPrefix="ep" Namespace="DreamBuilder.UI.UserControls"  Assembly="DreamBuilder.UI.UserControls"%>
<%@ Page language="c#" Codebehind="RefList.aspx.cs" AutoEventWireup="True" Inherits="DreamBuilder.UI.UserControls.RefList" %>
<html>
	<head runat="server">
        <title></title>
		<link href="../App_Themes/NewPage/Styles/layout.css" rel="Stylesheet" type="text/css" />
		<link href="../App_Themes/NewPage/Styles/tables.css" rel="Stylesheet" type="text/css" />
		<link href="../Styles/DatePicker.css" type="text/css" rel="stylesheet" />
		<style type="text/css">
		 html,body{font-family:"Microsoft YaHei", Tahoma, Arial, Helvetica, Verdana, Geneva;font-size:12px;color:#000;height:100%;background:white;background-color:#f1f1f1;}
		</style>
		<script language="javascript" type="text/jscript" src="../Javascript/UserControls.js" charset="utf-8"></script>
		<script language="javascript" type="text/jscript">
			function SelectRef(RefCode)
			{
				window.returnValue=RefCode;
				window.parent.close();
			}
			function ValueSelected(pkValue,displayFieldValue)
			{
			    document.getElementById('PKValue').value = pkValue;
			    document.getElementById('DisplayFieldValue').value = displayFieldValue;
				var clickID = '<%=btndbClick.ClientID%>';
				document.getElementById(clickID).click();
			}
		</script>
	</head>
	<body onkeydown="if(event.keyCode==27) window.close();">
		<form id="Form1" method="post" runat="server">
			<table   width="95%" style=" text-align:center; border:0;">
				<tr>
					<td ><asp:literal id="litTitle"  Runat="server"></asp:literal></td>
				</tr>
			</table>
			<table style=" text-align:center; border:0;" width="95%">
				<tr>
					<td align="right" >
						<asp:LinkButton Runat="server" ID="btnSelectThese" ></asp:LinkButton>
					</td>
				</tr>
			</table>
			 <ep:EPGridView ID="gvRefList" runat="server"  Width= "95%" HorizontalAlign="Center">
             </ep:EPGridView>
			  <input id="PKValue" runat ="server" type = "hidden"  enableviewstate ="true"/> 
			  <input id="DisplayFieldValue" runat ="server" type = "hidden"  enableviewstate ="true"/> 
			  <asp:Button ID="btndbClick" runat="server" Text="Button" Style="display: none;" />
		</form>
		<asp:Literal Runat="server" ID="litScript"></asp:Literal>
	</body>
</html>
